import BasicLayout from "@/Layouts/Layout.vue";

import system from './system'
import addon from './addon'
import mate from './mate'
import store from './store'
import user from './user'

console.log(addon, mate)

export default [{
    path: '/',
    name: '/',
    header: '/',
    redirect: {
        name: `/home`
    },
    component: BasicLayout,
    children: [
        {
            path: '/home',
            name: '/home',
            meta: {
                auth: 'home',
                menu_name: '主页',
                affix: true,
                header: false,
            },
            component: () => import('@/views/index/index.vue')
        },
        {
            path: '/addon',
            name: 'addon',
            meta: {
                auth: 'addon',
                menu_name: '应用中心',
            },
            component: () => import('@/views/addon/index.vue')
        },
        ...system,
        ...addon,
        ...mate,
        ...store,
        ...user
    ]
}]
